﻿cmake_minimum_required(VERSION 3.0.0)
project(diag_demo_skeleton VERSION 0.1.0)

message(STATUS "*** ${PROJECT_NAME}  ***")

file(GLOB MAIN_SRC     ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
file(GLOB LOG_SRC     ${CMAKE_CURRENT_SOURCE_DIR}/log/*.cpp)
file(GLOB DID_SRC     ${CMAKE_CURRENT_SOURCE_DIR}/diag/did/*.cpp)
file(GLOB DTC_SRC     ${CMAKE_CURRENT_SOURCE_DIR}/diag/dtc/*.cpp)

include_directories(${CMAKE_CURRENT_SOURCE_DIR})
# include_directories(${CMAKE_CURRENT_SOURCE_DIR}/)

add_executable(${PROJECT_NAME}
    ${MAIN_SRC}
    ${LOG_SRC}
    ${DID_SRC}
    ${DTC_SRC}
)

target_link_libraries(${PROJECT_NAME}
    PUBLIC
        dia-diagnostic-manager::rb-diag
        ${EXM_AAP_EXECUTION_MANAGER_LIBRARIES}
        ${COM_COMMUNICATION_MANAGER_LIBRARIES}
        -lpthread
        -lrt
    PRIVATE
        ${SKELETON_LIB}
)